package com.wdb.common.base;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
public abstract class BaseEntity implements Serializable {
    @Id
    private Long id;
    private Date created;
    private Date modified;
    private String deleted;
    @Column(name = "create_user_id")
    private Long createUserId;
    @Column(name = "update_user_id")
    private Long updateUserId;
    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", created=" + created +
                ", modified=" + modified +
                ", deleted='" + deleted + '\'' +
                ", createUserId=" + createUserId +
                ", updateUserId=" + updateUserId +
                '}';
    }
}
